//按需导出每个请求api接口
import request from '../request'

//新增用户个人信息(管理员)
export const AddUserInfoAPI = (params) => request.post('/usercenter/userManager/addUserDetailInfo', params)

//获取用户信息列表(管理员)
export const GetUserInfoListAPI = (params) => request.post('/authcenter/auth/getDetailUserInfoList', params)

//条件查询
export const GetUserInfoListByParamsAPI = (params) => request.post('/usercenter/userManager/getUserDetailInfoListByParams', params)

//删除用户个人信息(管理员)
export const RemoveUserInfoAPI = (params) => request.post('/usercenter/userManager/removeUserDetailInfo', params)

//更新用户个人信息(管理员)
export const UpdateUserInfoAPI = (params) => request.post('/usercenter/userManager/updateUserDetailInfo', params)

//获取头像信息
export const getHeadImgAPI = (params) => request.post(params)

//通过token获取个人信息(条件查询)(管理员)
export const GetUserBaseInformationAPI = (params) => request.post('/authcenter/auth/getContextUserInfoDetails', params)

//修改密码
export const UpdatePasswordAPI = (params) => request.post('/usercenter/userManager/updateUserPassword', params)

// 获取当前用户角色
export const GetRoleAPI = (params) => request.post('/authcenter/auth/getPermissionListByUserId', params)

// 获取当前用户位置
export const GetLocationByUserIpAPI = (params) => request.get('/location/getLocationByUserIp?ip='+params)

// 导入信息
export const ImportInfo = (params) => request.post('/excel/importUserInfoExcel', params)

// 导出信息
export const ExportInfo = (params) => request.get('/excel/exportUserInfoExcel', params, Headers={
    "Content-Type": "blob",
})


